package com.ruoyi.chy.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.chy.mapper.IntegralExchangeMapper;
import com.ruoyi.chy.domain.IntegralExchange;
import com.ruoyi.chy.service.IIntegralExchangeService;

/**
 * 积分兑换Service业务层处理
 * 
 * @author liuweichao
 * @date 2025-05-30
 */
@Service
public class IntegralExchangeServiceImpl implements IIntegralExchangeService 
{
    @Autowired
    private IntegralExchangeMapper integralExchangeMapper;

    /**
     * 查询积分兑换
     * 
     * @param id 积分兑换主键
     * @return 积分兑换
     */
    @Override
    public IntegralExchange selectIntegralExchangeById(Integer id)
    {
        return integralExchangeMapper.selectIntegralExchangeById(id);
    }

    /**
     * 查询积分兑换列表
     * 
     * @param integralExchange 积分兑换
     * @return 积分兑换
     */
    @Override
    public List<IntegralExchange> selectIntegralExchangeList(IntegralExchange integralExchange)
    {
        return integralExchangeMapper.selectIntegralExchangeList(integralExchange);
    }

    /**
     * 新增积分兑换
     * 
     * @param integralExchange 积分兑换
     * @return 结果
     */
    @Override
    public int insertIntegralExchange(IntegralExchange integralExchange)
    {
        return integralExchangeMapper.insertIntegralExchange(integralExchange);
    }

    /**
     * 修改积分兑换
     * 
     * @param integralExchange 积分兑换
     * @return 结果
     */
    @Override
    public int updateIntegralExchange(IntegralExchange integralExchange)
    {
        return integralExchangeMapper.updateIntegralExchange(integralExchange);
    }

    /**
     * 批量删除积分兑换
     * 
     * @param ids 需要删除的积分兑换主键
     * @return 结果
     */
    @Override
    public int deleteIntegralExchangeByIds(Integer[] ids)
    {
        return integralExchangeMapper.deleteIntegralExchangeByIds(ids);
    }

    /**
     * 删除积分兑换信息
     * 
     * @param id 积分兑换主键
     * @return 结果
     */
    @Override
    public int deleteIntegralExchangeById(Integer id)
    {
        return integralExchangeMapper.deleteIntegralExchangeById(id);
    }
}
